﻿namespace AbstractLib
{
    public interface IMyServices
    {
        string SayHellow(string name);
        Task<string> SayHellowAsync(string name);
    }

    public class MyService : IMyServices
    {
        public string SayHellow(string name)
        {
            Console.WriteLine($"执行  Hello {name}");
            return name;
        }

        public Task<string> SayHellowAsync(string name)
        {
            Console.WriteLine($"执行  Hello {name}");
            return Task.FromResult<string>("nihao");
        }
    }
}
